<?php

/*

Prompt (prompt.pro.php)

*/
ob_start();
$page_title = "Prompt";
$rank_check = 1;
include "header.inc.php";

$command = explode(": ",$command);
$check = count($command);

$command[0] = strtolower($command[0]);

if ($check == 1)
{
	$command[1] = ereg_replace("\n","",$command[0]);
	die(include "search.pro.php");
}
else
{
	$prompts = file("lists/prompts.txt");
	$num_prompts = count($prompts);
	$x = 0;
	while ($x < $num_prompts)
	{
		$prompt = explode(" ",$prompts[$x]);
		$prompt[1] = ereg_replace("\n","",$prompt[1]);
		if ($command[0] == $prompt[0])
		{
			die(include "$prompt[1]");
		}
		$x++;
	}
}

header(error("index.php?game=$game","$command[0] is not a valid prompt."));

?>